package com.zhengxing.jienci.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.zhengxing.jienci.common.pojo.SysUser;
import com.zhengxing.jienci.config.FeignConfig;

@FeignClient(configuration = FeignConfig.class, name = "jienci-user")
public interface UserFeginApi {
	
	@GetMapping("/user/detail/{userId}")
	SysUser getDetailUserById(@PathVariable("userId") String userId);
	
	
	@GetMapping("/user/simple/{userId}")
	SysUser getSimpleUserById(@PathVariable("userId") String userId);
}
